import {Base} from '../../utils/base.js';
class Detail extends Base{
  constructor()
  {
    super();
  }

  //根据商品ID获取商品详情
  getProductDetailByID(id,callback)
  {
    var that = this;
    var params = {
      url:"goods/detail?id="+id,
      sCallback:function(data)
      {
        callback && callback(data);
      }
    };
    this.request(params);
  }

  //写进去推广信息
  updateUserInfo(shopid,callback)
  {
     var that = this;
    var params = {
      url:"user/shop?shopid="+shopid,
      sCallback:function(data)
      {
        callback && callback(data);
      }
    };
    this.request(params);
  }
}
export {Detail}; 